package com.sj.purchase.modules.stages.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.persistence.*;
import java.util.Date;

/**
 * @author yangrd
 * @date 2018/8/10
 **/
@Entity
@Table(name = "stages_order")
public class StagesOrder {

    /**
     * id订单号
     */
    @Id
    @Excel(name = "订单号", width = 20)
    private String orderNo;


    /**
     * 销售价（实际付款价格）
     */
    @Excel(name = "销售价", width = 20)
    private Double payment;

    /**
     * 管易 "deliveryTime" 记录发货时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @Temporal(TemporalType.TIMESTAMP)
    @Excel(name = "发货时间", width = 20)
    private Date orderDate;

//    来自分期购的数据

    @Excel(name = "店铺名称", width = 20)
    private String shopName;

    /**
     * 交易生成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @Temporal(TemporalType.TIMESTAMP)
    @Excel(name = "交易生成时间", width = 20)
    private Date createTime;

    /**
     * 分期付款价格
     */
    @Excel(name = "分期付款价格", width = 20)
    private Float stagesPrice;

    /**
     * 分期付款期数
     */
    @Excel(name = "分期付款期数", width = 20)
    private Integer stagesNUm;

    /**
     * 买家单期手续费
     */
    @Excel(name = "买家单期手续费", width = 20)
    private Float counterFee;

    /**
     * 买家手续费
     */
    @Excel(name = "买家手续费", width = 20)
    private Float totalCounterFee;

    /**
     * 卖家手续费
     */
    @Excel(name = "卖家手续费", width = 20)
    private Float seller;

    /**
     * 优惠
     */
    @Excel(name = "优惠", width = 20)
    private Float discount;

    public String getOrderNo() {
        return orderNo;
    }

    public StagesOrder setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    public Double getPayment() {
        return payment;
    }

    public StagesOrder setPayment(Double payment) {
        this.payment = payment;
        return this;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public StagesOrder setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
        return this;
    }

    public String getShopName() {
        return shopName;
    }

    public StagesOrder setShopName(String shopName) {
        this.shopName = shopName;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public StagesOrder setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Float getStagesPrice() {
        return stagesPrice;
    }

    public StagesOrder setStagesPrice(Float stagesPrice) {
        this.stagesPrice = stagesPrice;
        return this;
    }

    public Integer getStagesNUm() {
        return stagesNUm;
    }

    public StagesOrder setStagesNUm(Integer stagesNUm) {
        this.stagesNUm = stagesNUm;
        return this;
    }

    public Float getCounterFee() {
        return counterFee;
    }

    public StagesOrder setCounterFee(Float counterFee) {
        this.counterFee = counterFee;
        return this;
    }

    public Float getTotalCounterFee() {
        return totalCounterFee;
    }

    public StagesOrder setTotalCounterFee(Float totalCounterFee) {
        this.totalCounterFee = totalCounterFee;
        return this;
    }

    public Float getSeller() {
        return seller;
    }

    public StagesOrder setSeller(Float seller) {
        this.seller = seller;
        return this;
    }

    public Float getDiscount() {
        return discount;
    }

    public StagesOrder setDiscount(Float discount) {
        this.discount = discount;
        return this;
    }
}
